Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickTime Components /
Chapter 2 - Movie Controller Components / Movie Controller Components Reference
Movie Controller Functions / Handling Movie Events


MCGetControllerInfo

Your application can use the MCGetControllerInfo function to determine the current status of a movie controller and its associated movie. You can use this information to control your application's menu highlighting.

pascal ComponentResult MCGetControllerInfo (MovieController mc,
                                             long *someFlags);
mc
Specifies the movie controller for the operation. You obtain this
identifier from the Component Manager's OpenComponent or OpenDefaultComponent function, or from the NewMovieController function (described on page 2-28).
someFlags
Contains a pointer to flags that specify the current status and capabilities of the controller. The following flags are defined (more than one flag may be set to 1):
mcInfoUndoAvailable
The user has edited the movie. If this flag is set to 1, you can call the MCUndo function (described on page 2-54).
mcInfoCutAvailable
The user has selected some material in the movie and editing is enabled. If this flag is set to 1, you can call the MCCut function (described on page 2-51).
mcInfoCopyAvailable
The user has selected some material in the movie. If this flag is set to 1, you can call the MCCopy function (described on page 2-52).
mcInfoPasteAvailable
There is movie data in the scrap and editing is enabled. If this flag is set to 1, you can call the MCPaste function (described on page 2-53).
If your application maintains a private scrap, this flag does not reflect the state of that scrap.
mcInfoClearAvailable
The user has selected some material in the movie and editing is enabled. If this flag is set to 1, you can call the MCClear function (described on page 2-54).
mcInfoHasSound
The movie has sound. If this flag is set to 1, the controller can play a movie's sound.
mcInfoIsPlaying
If this flag is set to 1, the movie is playing.
mcInfoIsLooping

The controller is currently set to play its movie repeatedly. If this flag is set to 1, the movie is looping.
mcInfoIsInPalindrome
The controller is currently set to play its movie
repeatedly, alternating between forward and backward playback. If this flag is set to 1, the movie is in palindrome looping mode.
mcInfoEditingEnabled
The user can edit the movie associated with this controller. If this flag is set to 1, you have enabled editing by calling the MCEnableEditing function (described on page 2-50).

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help